package com.xiaolin.designmode.visitor;

/**
 * @ClassName ConcreteVisitor2
 * @Description 具体访问者
 * @Detail detail
 * @Author MyPC
 * @Date 2020/11/8
 * @Version 1.0
 */
public class ConcreteVisitor2 implements Visitor{
    @Override
    public void visit(ConcreteElement1 element1) {
        System.out.println("我是2号，"+element1.operation());
    }

    @Override
    public void visit(ConcreteElement2 element2) {
        System.out.println("我是2号，"+element2.operation());
    }
}
